package com.finchina.myview.ball;

import android.animation.TypeEvaluator;

/**
 * 作者：黄赛赛 on 2015/9/2 16:14
 *
 * @version V1.0
 * @Description: ${todo}()
 */
public class PointEvaluate implements TypeEvaluator<Point> {
    @Override
    public Point evaluate(float fraction, Point startValue, Point endValue) {
        float x,y;
        x = startValue.getX() + fraction * (endValue.getX() - startValue.getX());
        y = startValue.getY() + fraction * (endValue.getY() - startValue.getY());
        Point p = new Point(x, y);
        return p;
    }
}
